-- GENERATED SPELL FOR [Enraged Felguard] --


function spell0_14101(pUnit, Event) --@Blast Wave,Self--
pUnit:FullCastSpellOnTarget(16046,pUnit)
pUnit:RegisterEvent('Sorts_14101', 6305, 1)
end

function spell1_14101(pUnit, Event) --@Enraged Felguard Spawn,n/a--
pUnit:FullCastSpellOnTarget(22393,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14101', 617, 1)
end

function spell2_14101(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_14101', 625, 1)
end

function spell3_14101(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(15580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14101', 689, 1)
end

function spell4_14101(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(15548,pUnit)
pUnit:RegisterEvent('Sorts_14101', 10276, 1)
end

function Sorts_14101(pUnit, Event)
local choix_sorts_14101 = math.random(0, 4)
if choix_sorts_14101 == 0 then
pUnit:RegisterEvent('spell0_14101', 1, 1)
end
if choix_sorts_14101 == 1 then
pUnit:RegisterEvent('spell1_14101', 1, 1)
end
if choix_sorts_14101 == 2 then
pUnit:RegisterEvent('spell2_14101', 1, 1)
end
if choix_sorts_14101 == 3 then
pUnit:RegisterEvent('spell3_14101', 1, 1)
end
if choix_sorts_14101 == 4 then
pUnit:RegisterEvent('spell4_14101', 1, 1)
end
end

function mob14101_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14101', math.random(1500, 3000), 1)
end

function mob14101_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14101_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14101_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14101, 1, 'mob14101_Action')
RegisterUnitEvent(14101, 2, 'mob14101_Leave')
RegisterUnitEvent(14101, 3, 'mob14101_Kill')
RegisterUnitEvent(14101, 4, 'mob14101_Die')
